import React, { useState } from 'react'

export default function AudioTest() {
  const [currentTime, setCurrentTime] = useState(0)
  const onPlay = (e) => {
    console.log('onPlay', e)
  }
  const timeupdate = (e) => {
    console.log('timeupdate', e)
  }

  return (
    <div>
      <audio controls src="http://m8.music.126.net/20201210103354/10582e576ab2bfc2445b346da04ab016/ymusic/9d28/43aa/0c0f/9b12a9444221b37d3063f0f2bcb027d9.mp3" timeupdate={timeupdate} currenttime={currentTime} onPlay={onPlay}>
        oh my god
      </audio>
    </div>
  )
}
